package com.linln.modules.system.dao;

import com.github.pagehelper.Page;
import com.linln.modules.system.entity.BeautyCompany;
import com.linln.modules.system.entity.BeautyCompanyExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BeautyCompanyMapper {
    int countByExample(BeautyCompanyExample example);

    int deleteByExample(BeautyCompanyExample example);

    int deleteByPrimaryKey(String id);

    int insert(BeautyCompany record);

    int insertSelective(BeautyCompany record);

    List<BeautyCompany> selectByExample(BeautyCompanyExample example);

    BeautyCompany selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") BeautyCompany record, @Param("example") BeautyCompanyExample example);

    int updateByExample(@Param("record") BeautyCompany record, @Param("example") BeautyCompanyExample example);

    int updateByPrimaryKeySelective(BeautyCompany record);

    int updateByPrimaryKey(BeautyCompany record);

    Page<BeautyCompany> getAllCompanyPager(@Param("name")String name);
}